package com.buba.controller;


import com.buba.service.MaintenanceExperienceService;
import common.R;
import entity.maintenance.dto.MaintenanceExperienceDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import utils.pageutil.PageResult;

/**
 * <p>
 * 保养经验 前端控制器
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@RestController
@RequestMapping("/maintenance-experience")
public class MaintenanceExperienceController {
    @Autowired
    private MaintenanceExperienceService maintenanceExperienceService;

    /**
     * @return common.R
     * @Author atlong
     * @Description 模糊分页全查保养经验数据
     * @Date 2023/6/14 14:46
     * @Param [maintenanceExperienceDto]
     **/
    @PostMapping("selMaintenanceExperience")
    public R selMaintenanceExperience(@RequestBody MaintenanceExperienceDto maintenanceExperienceDto) {
        PageResult pageResult = maintenanceExperienceService.selMaintenanceExperience(maintenanceExperienceDto);
        return R.success(pageResult);
    }


}

